package com.shuyu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shuyu.common.utils.SecurityUtils;
import com.shuyu.domain.ApprovalAuthorize;
import com.shuyu.mapper.ApprovalAuthorizeMapper;
import com.shuyu.service.ApprovalAuthorizeService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ApprovalAuthorizeServiceImpl extends ServiceImpl<ApprovalAuthorizeMapper,ApprovalAuthorize> implements ApprovalAuthorizeService {
    @Override
    public List<ApprovalAuthorize> getList() {
        Long userId = SecurityUtils.getLoginUser().getUserId();
        return this.baseMapper.getList(userId);
    }
}
